package com.mall.common.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: 谢君臣
 * @Date: 2022/7/30-19:23
 * @version: 1.0
 * @function:
 *
 * "attrs": {
 * "type": "nested",
 * "properties": {
 * "attrId": {
 * "type": "long"
 * },
 * "attrName": {
 * "type": "keyword",
 * "index": false,
 * "doc_values": false
 * },
 * "attrValue": {
 * "type": "keyword"
 * }
 * }
 * }
 * }
 */
@Data
public class SkuEsModel {

    public Long skuId;

    public String skuTitle;
    public BigDecimal skuPrice;
    public String skuImg;

    public Long brandId;
    public String brandName;
    public String brandImg;

    public Long spuId;
    public Long saleCount;
    public Boolean hasStock;
    public Long hotScore;

    public Long catalogId;
    public String catalogName;

    public List<Attr>attrs;

    @Data
    public static class Attr{
        public Long attrId;
        public String attrName;
        public String attrValue;
    }
}
